package vh.sphynx.util;

import org.eclipse.emf.ecore.EObject;

import vh.sphynx.runtime.ExecutionContext;

public class SphynxTypeMismatchException extends SphynxRuntimeException {

	private static final long serialVersionUID = 1L;

	public SphynxTypeMismatchException(ExecutionContext context, EObject exp, Class<?> expected, Object found) {
		super(context, exp, String.format("Type is mismatch: '%s' is expected, but '%s' found.",
				expected.getName(), found != null ? found.getClass().getName() : "null"));
	}

}
